# 0
import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'meiduo_mall.settings.dev')

# 1
from celery import Celery
celery_app = Celery('celery_tasks')

# 2
celery_app.config_from_object('celery_tasks.config')

# 3
celery_app.autodiscover_tasks(['celery_tasks.sms'])
celery_app.autodiscover_tasks(['celery_tasks.sd_email'])